package com.pearadmin.pro.modules.experiment.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * experiment_bulletin
 * @author
 */
@Data
@Alias("ExperimentBulletin")
@TableName("experiment_bulletin")
public class ExperimentBulletin implements Serializable {
    /**
     * id
     */
    @TableId("id")
    private Integer id;

    /**
     * 类别 0：新闻；1：公告
     */
    @TableField("eb_category")
    private String ebCategory;

    /**
     * 新闻标题
     */
    @TableField("eb_Title")
    private String ebTitle;

    @TableField("cover")
    private String ebCover;
    /**
     * 新闻内容
     */
    @TableField("eb_content")
    private String ebContent;

    /**
     * 发布时间
     */
    @TableField("eb_createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ebCreatetime;

    /**
     * 发布人
     */
    @TableField("eb_createuser")
    private String ebCreateuser;

    @TableField(exist = false)
    private String ebCreateUserName;

    /**
     * 修改时间
     */
    @TableField("eb_updatetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ebUpdatetime;

    /**
     * 修改人
     */
    @TableField("eb_updateuser")
    private String ebUpdateuser;


    @TableField(exist = false)
    private List<ExperimentAccessory> experimentAccessoryList;


    @TableField(exist = false)
    private List<String> accessoryList;

    @TableField(exist = false)
    private List<Object> objectList;

    private static final long serialVersionUID = 1L;
}
